Fixed Travis build errors.