fix build issues on ubuntu
enable CI on travis