add EWOULDBLOCK to fix windows; close #138