Fixed Delphi 7 compilation