I think your problem is the use of Cygwin perl. I had the same problem however the problem disappeared after I installed Activestate perl.

Make sure the 'perl' command used is the Activestate one and not the Cygwin one.