Fix build errors

Fixed the Travis CI build errors stated.