Move the iccColorSpaceCache from Gfx to OutputDev

This way it's shared when doing tiling. Page 35 of bug-poppler64963.pdf
goes down from 150 to 133 seconds
Fix memory leak
[qt4] fix autotools
Allow to build without multithreading
Use fseeko64/ftello64 for MinGW32