Use typeof(sizeof(...)) to define a size_t. This stops gcc complaining