It's not the libertarianism that's the problem, it's the assumption that, at scale, humans are fungible. Your "first principles" should include the presumption that "countries are the way they are because of their citizens." So the question is not just whether a given individual "deserves" to live in more or less comfortable circumstances. It's also: what happens when you import a large number of people from a place with an authoritarian regime to a democracy?