small modification to allow inclusion of logilib in C++ code