Made build_detect_platform file exectuable.

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