adding static cxxflags to shared lib