Made build_detect_platform file executable.

Without this change, building from source on Unix systems fails.