fix JNI deliverMessage prototype

The first argument has to be JNIEnv*, it was missing from the definition of the deliverMessage method used from Java.