fix JNI deliverMessage prototype

The first argument has to be JNIEnv*, it was missing from the definition of the deliverMessage method used from Java. This was leading to crashes on Android devices.