LCGUTIL-441: Added compatibility #ifdefs