pforth: use extern "C" for IO functions