Fix unitialized variable reported by valgrind.
Removed dep on QtGui for the headless modules.
pro files in the same directory. With this change the android library now builds properly. This also fixes the parallel compilation problem that happened when building using +8 cores.