fixed gcc4.7 version compatibility