Adjust preprocessor logic for the fact that FreeBSD has proper directory(3) and nanosleep(2) support. PR: 284231 Reported by: portscout