Converted VertexElementFormat and SurfaceFormat size extension methods to plain static methods to please the MacOS build which seems to not line internal extension classes.