Make GC link with pthread