fix compile failure on travis