Fix references to native code