made improvements to libraries.cmake