Fix locale for various qt versions