fix build errors when building as a submodule; improved qdjango.pri to simplify its usage