Compile fixes for OSX

Also fixed github URL's to point to correct project.
Merge pull request #26 from sunsetbrew/master

Compile fixes for OSX