Add support for Mono 3.5 Full AOT (for Unity 3D compatibility)

These patches enable building the library with the Mono AOT compiler to run on iOS. These changes were tested with Unity 4 but will likely work on MonoTouch as well.