Added JAVA_HOME setting for cygwin and mingw