fix compile error with gcc4.7