Fix compilation of sqlite backend under Qt4.
Fix .pro file.
Add entry in debian rules to headless package.