added support of multiple tls callbacks
fixed a bug which may calculated wrong tls callback offsets