macosx: fix compilation on snow leopard by not using [] syntax for arrays
macosx: avoid NS_ENUM to fix compilation on snow leopard
macosx: check for NSByteCountFormatter on runtime, to fix compilation on snow leopard

Defining the category to a nonexisting class is not allowed, as well as providing
an interface for this class without implementation.