Fix build on XE2+