Added C++ compatibility to header.