Tools: Fix build for Mac

ACE_thread_t returned by ACE_Thread::self is a struct in Mac OS