fix compile error for ubuntu