Changed build system from QMake to CMake for easier deployment.