Even if you will do chmod a+x on leveldb/build_detect_platform you still can't compile wallet.
I don't seem to be able to reproduce that problem. When build_detect_platform is -x then make clean && make succeeds. Could you post the error messages?
Cheers
Graham