added java support for cygwin