As the population ages and shrinks, the country is making it easier for foreigners to work and become citizens.