Clean up locale stuff, fix multilib.