Another possibility, but will introduce a huge amount of code which needs to be maintained, is to make it a build dependency in kind of switch (#ifdef ...) so it can be turned on by compile time and would not cause a hard, extra dependency.
... huge amount of code that needs to be maintained...
I think you just provided your own answer :-)
Cheers Lex