fix osx 10.7 SDK errors
Merge pull request #319 from vectorsize/master

Fixing compile errors in OSX10.7