Generate struct layout assertions for ABI compatibility