Fixed AllPay build issues.