renamed tcptrace_global_state type to tcptrace_state_t
renamed *global_state to *state in client functions