build with -fPIC

This is probably not the right solution, but it makes it build.
test: avoid warning about lacking QCoreApplication