AGM_Core: Fixed some syntax errors (missing semi-colons and duplicated d...

...efines) that made AGM_Core unable to be packed using pboProject.