Started modifying build script to use cmake system