Change th_get_size() macro to return unsigned int