made the header compatible with C++