Make JAVA_HOME and JAVA_HEADERS overridable on OSX too.