Provides a category method for NSAlert to use a block based API on OS X before Mavericks