Added nice messages for JNI check to configure.in.
Also added prefix/suffix for dynamic libraries.