updated cmake for osx