Compile static library with '-fPIC' if it will be linked into shared shared lib.

- Need to do this automatically, not ad-hoc like this.