patches to compile/install on windows
change key handling to use matplotlib routines; Fixes #4