Fix the output names of libraries in Windows.

 * Set shared lib to zlib1.dll
 * Set implib to libz.dll.a in MinGW
 * Set static lib to libz.a in MinGW