The origin of carbon: Low-mass stars and an evolving, initially top-heavy IMF?