fix errors in header files when evaluated as C++ (#91)