fix allow quitting with ctrl-c
fix win recognition