Added Collectable to pthreads stub