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