win32 tweaks

It works under cygwin, though leaves a stacktrace on exit when
you use the 'built' version.

It builds under mingw32 but lack of posix currently breaks
urwid.
Ignore stackdump and core files.