compat: wrap math.h to avoid AIX-specific clashes

AIX defines a class() function in its math.h header without any
guard.