JNI ubuntu 12.10 update changes and other minor fixes