Changes to accomodate Mac OSX 10.9

Hi Badsector,

I made some changes to this repo to build with the latest SDK.

squarel