Windows cygwin freebsd

With this change I am able to build + test + install on FreeBSD, cygwin, MSWin32
(untested but I expect that other *BSDs may also work)