Cygwin support

replace fork for pthread, etc.