Set the executable flag on build_detect_platform
Merge pull request #7 from srcxxx/master

Fix Unix compile problems