Fix calls to non-static native class functions.