More reliable way of adding -fPIC.

Fixes #162