Fix compilation errors on travis