C++ compatibility library for older compilers