fix compile error on Linux by gcc 4.7