Add a forward declaration of OnRuntimeError()
Fix Linux build