Add nonblock support for mingw platforms