the constant IMAGE_FILE_LARGE_ADDRESS_AWARE is defined in defines.inc, which is part of the windows unit.
so add the windows unit to your uses clause, then set the flag after the uses , should work fine.
uses windows, ........
{$SetPeFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}