Fix broken win32+bsd build
Fix broken Ipv4 serialization on win32
Fix MSVC build