Shakey initial attempt to support Mac OSX through cmake.