Remove macros.m and use objective-c runtime to hold references.