Fixed OSX build script & makefile (thanks picobit!)