add library dependence for some version of g++