{$IFDEF WIN32} to {$IFNDEF MSDOS}

Going to try to create Linux and OS/2 ports, so this will help