CMake changes necessary to handle shared imported library.