Fixed cmake warning on cygwin
Convert character nodes to files on cygwin
Merged with upstream