Fix windows agents compile error and warnings #define ENOBUFS, #define ALERT_SYSTEM_ERR