When HAS_UNITSCOPE is not defined, this will not compile. Simply remove the IFDEF and use Classes directly.