build with -fPIC

This is probably not the right solution, but it makes it build.
test: avoid warning about lacking QCoreApplication
Merge pull request #1 from teg/master

fix two compilation warnings