Made main header C++-compatible.