Heavy quarks and long-lived hadrons