Cygwin windows changes

Agent will now start on windows using cygwin