Some changes made for DOS. Supported cygwin. Also updated build environment.