Base library with some C++ stuff