enable CI on travis
fix build issues on ubuntu