fix Travis CI and Cargo builds