fix building error for gcc 4.7