Fixed how CMake handles import libraries.