General purpose iOS and Mac OS utility classes such as a signal class for easy semaphores and an improved NSTimer class