For normal compiling use Delphi 6 with installed component FastDib.