Mantis #6147: Compile error in Delphi 6-2007