Update AMCObject.h

Fix iOS8 bugs