fixing library exports in CMakeLists.txt