Note that there is another way around $IF limitation (employed by Indy for a while IIRC till they raised the minimum):
Move the parts that require $IF's to a separate includefile, test for the minimal delphis, and then only include the secondary part if it is not an old delphi.
That way, old compilers don't see the IFs.