update nativelib.c