Updated build system.

* Finished migrating compiler to CMake-build system.
* Made CMake-build system for bulding runtime library.
* Added a toplevel CMakeLists.txt for building (and installing) the entire project.