config only checks for the symbol in libc, we need the correct prototype. Which is excluded even on NetBSD (_NETBSD_SOURCE isn't defined in stdlib.h).