Fix the build system can detect NetBSD.