converting build system to cmake: make install works