Add -fPIC flag for g++ and clang