Fix script to compile with Delphi 6