moved to cmake, new libs, plain cpp files