Fix Delphi 2007 compilation