Force extern "C" for API declarations.
Seems that IBM VAC implied that for stdcall ones. GCC doesn't do that.