When building for Linux, it assumes that Glibc-specific functionality is available even though it has a fallback for when it isn't. This patch teaches it to only use Glibc-specific functionality on Glibc.