Call objc_thread_{add,remove} when using the GNU runtime.