Fix some native and managed function signatures.