improve compile performance by minimizing headers
make codebase compatible with qt4