HPCC-10283 Ensure GLOBAL(,OPT) is processed correctly inside a library

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>