Link libraries with -fPIC when needed.

Required when clang is set to emit bitcode instead of object code.