code: public static void convertCygwinFilenames(final String[] names) {
      if (names == null) {
        throw new NullPointerException("names");
      }
      final File gccDir = CUtil.getExecutableLocation(GccCCompiler.CMD_PREFIX + "gcc.exe");
      if (gccDir != null) {
        final String prefix = gccDir.getAbsolutePath() + "/..";
        final StringBuffer buf = new StringBuffer();
        for (int i = 0; i < names.length; i++) {
          final String name = names[i];
          if (name != null && name.length() > 1 && name.charAt(0) == '/') {
            buf.setLength(0);
            buf.append(prefix);
            buf.append(name);
            names[i] = buf.toString();
          }
        }
      }
    }
docs: Converts absolute Cygwin file or directory names to the corresponding
  Win32 name.
  
  @param names
  array of names, some elements may be null, will be changed in
  place.