[libqtsparql] Make it easier for clients to mock a driver for tests.

Install private headers so the drivers can be implemented and support
for static plugins to enable the driver to be built as part of the test
binary.