Subclassable Objective-C singleton for Mac OSX and iOS