Recent structural changes and new features introduced some terrific bugs.
This hopefully fixes most of them.
Speed up pot reload (a lot) by using bitmap.
#ifdef out some select() stuff in tty_getchar() that was used for
Cygwin but isn't needed (anymore?).