fix imagemagick finding under mingw cross build test