fix some error in g++4.8