MongoDB only needs the Linux kernel/GNU/GCC when it's running or compiling on Linux. On OSX and Windows it uses other toolchains.
And your point goes against the entire spirit of open source. No one should be forced to contribute back to open source less they be criticised by the community.