Cleanup native functions.