Fixing the build on NetBSD