Update configure script to work with oracle jdks on OS X