Add a check for vtkzlib that works for VTK 5 and 6.
Add vtkIOMPIImage to VTK_LIBS if it is present.

The vtkIOMPIImage library, if present, has factory implementations
of some vtkIOImage classes and must therefore be linked if vtkIOImage
is linked.