adjustments to build on mac