Changed the build system to cmake