Header for attribute macros

This PR adds an util/attributes.h header file for utility attribute macros.