Cosmological Perfect Fluids in Gauss-Bonnet Gravity