Mingw fix: zfile assertion and zbeacon winsock compatibility