[build] MacOSX 10.7 SDK
+ Fixed some build issues when attempting to build using the MacOSX 10.7 SDK