More defect detection fixes
Use proper type gmenu* instead of void*
Even more fixes!
Fix clang++ warning [-Wreorder]