Attempt to add cygwin support
DOESN'T WORK. Need to be studied more in detail if necessary