fixed compilation issue for the Delphi NEXTGEN compiler