Small chenges

to compile with old and new Delphi