Compile fixes for OSX

Also fixed github URL's to point to correct project.