fixed g++4.9 compilation error