Made build_detect_platform executable so it builds ok on Linux.