Initial attempt at osx support in the cmake project