resolve the g++4.9 compile error problem