Merged windows changes + Fixes

Merged changes from the adhoc-support-windows branch.
Added fix for emulator freezing when trying to save.
Added errno management with WSAGetLastError() on windows, and updated corresponding errors.
Added a config lane and loading for MAC local address, but didn't find a way yet to use it.