updated CMake file to allow installation into lib