one of the extern "C"s was not surrounded by ifdef c++