Glueball dark matter in non-standard cosmologies