fix for missing EAGAIN definition on windows