cmake adjustment for osx