Fix incorrect detection of class definitions with alignas specification.