Fixed deprecated macro
Added support for Mac OS X 10.7
Fixed issue with SDKs path on Mac OS X 10.7
Added support for Mac OS X 10.8
Added support for Mac OS X 10.8
Fixed compiler warnings on newer Xcode compilers Mac OS X