Fix delphi5 compilation