Add support for non-blocking socket code on windows