Move some things to deprecated/gthread.h