Moved -fPIC compiler flag to CXXFLAGS.