Added CMake-buildsupport

This makes it easier to build the libraries and makes it much easier to use in mid- and large-scale projects.