Hyperons and quarks in proto-neutron stars