fix max osx build