Fixed Delphi 7 support

Signed-off-by: Mikhail Grigorev <sleuthhound@gmail.com>