Use sizeof on a list of types rather than hardcoding an architecure specific struct size.