add attributes for clang compiler

Quick change to add attributes that (should) work with the Clang compiler. In my testing, these seem to work -- the compiler does not complain, and the attributes seem to be as they are declared.