Fix compilation using d2007
Fix DelphiXE compilation