Use 24-bit thread ids for Max OSX.