fix compile error at gcc