Add minimum enumeration size option for Delphi 7 compiler
Fix compile errors caused by ifdefs