Added XCode 5 support and some basic modications

Maximize the LLVM optimizations