Make code Delphi5-compatible