* [core]: fix missing errno defines for windows