Fix a C++ compile error regarding menu_data.

Replace void * menu_data with a union.