Simple demo application which hangs on Cygwin 1.7.30 on Windows 7 32bit