fix compile error and travis setting
Merge pull request #214 from xuwei-k/fix-test-compile-error

fix compile error and travis setting