Add -fPIC to fix link error on Linux