improve build for mac.
fix some shaders for GL3.
fix variable length string conversion.
Merge pull request #37 from rydotyosh/improveBuildForMac4_PR

improve build for mac.