fix compile error on travis