Reworked cmake build to be able to install properly