On the mod p derived Hecke algebra of a p-adic group