mdxmini: move structs above functions