JDK renamed a native method, probably to deprecate it.

Fixed #272.