Win32 fixes for ctypes, bz2, zlib, struct, json and compile errors.