cross platform c++ class lib (cmake)