AIM: add wrappers for __attribute__

Reviewer: @jnealtowns

We use all of these attributes and they're usually accompanied by "#ifdef
__GNUC__". Adding wrappers to AIM makes using them less painful.