Cannot link in static pthreadGC2