Resolved additional compilation issues in CreateAIMObject class.