Remove unused attributes
mkclass: Optimize struct layout

fixes #7615
Improve config compiler's memory usage