Ensuring Fairness under Prior Probability Shifts