Fixed problem with availability macros.
Fixed error when resolving 'const' pointers to Obj-C classes.