Fixed build error with ImageMagick 6.8.8
  (removed deprecated functions)
Fixed build error with Windows x64