Fix compile - attributes are only allowed in the header