Replaced make with cmake

cmake allows for easier cross-platform compilation.