Nation-Building Through Compulsory Schooling During the Age of Mass Migration