Adds fallback to Java implementations for JNI calls on read-only heap
buffers.