Added additional patch to use assembly wrapper for TLS callbacks.