Split threading.h into threading.m and threading.h