Fixed Delphi 7 support