community/mmh: fix build with -fno-common

- Fix build with -fno-common
- Modernize
-- Add check()
7 jobs for !16110 with community/mmh in 3 minutes and 4 seconds (queued for 1 second)
merge request