Fixed CMake build using common_library()

New attempt for Travis