[TPL] Add mono internal API support

don't comment out code but use #if/#else