OSX build command fixes