Minor fixes to OSX build script