Upgrade zlib to 1.2.8. Add a little more DirectX9 stuff.

Replace DxErr9 to DxErr, for better forward compatibility.