MinGW32 may or may not define __MINGW_PRINTF_FORMAT

Moreover __USE_MINGW_ANSI_STDIO might be defined as 0
Windows compile fixes
Add quotes since use_cairo can have spaces

BUG #65709
Pass down the recursion param

Fixes heap smashing in 168.pdf.SIGSEGV.598.462
Initial Qt5 port
remove commented stuff
remove deprecated stuff
Remove qt4 mentions
harmonize spaces
soversion 1
Files i forgot
Build fixes

Fix moc when moc-qt4 is qt4 moc but moc is qt5 one
Do not add -fPIE everywhere, just -fPIC to qt5
No distro ships moc-qt5 but make it work in case someone would
Use qtchooser if available
Bring PIC back to the toplevel, still have linking errors tohugh :-/
Allow to enable Qt5 support only with CMake >= 2.8.8
We are not compiling an executable
If qmake gives us a Qt5 qmake try with qmake4 and qmake-qt4
Make it build with autotools
Bring changes from the qt4 dir