merge from MikuMikuStudio nativebullet.

TODO:RoboVM doesn't support NewWeakGlobalRef.It causes memory leak.