added some cygwin compatibility crap
enhanced uninstall