Fix implicit declarations regarding IoState_registerProtoWithFunc_