From the Malthusian to the Modern growth regime in an OLG model with unions