Fix to permit build with Java 1.6 or Java 1.7 on OS X

These changes to binding.gyp read JAVA_HOME to determine which Java version on OS X the addon should use based on the root. I tested it on Snow Leopard and Mountain Lion with no apparent problems.