fix compile error and travis setting