Added support for MRC and ARC.

Added compiler directives for dynamically supporting manual and
automatic reference counting.