Updated the CMakeList file for use with OSX and Brew liraries