Remainder of the work to port ot Windows.. Had to remove some non-portable errror codes from the API.