Added support for C++11 std::nullptr_t for completeness.
Don't define CGGeometry casts if CG hasn't been included.
IOS compatibility for CG cast operations.