fix compilation: add -fPIC
python: fix 'make test'