Fix Linux build scripts and CMake setup to build cleanly on Linux-amd64
Merge branch 'cmake-development' of https://github.com/seclorum/moai-sdk into cmake-development