fixed Delphi 5 compilation issue