fix the syntax location of cxx11 attributes so tests could pass.