fix compilation when included with C++ code