fix compile error in gcc