Compile-time detection for OS.