Contrib macosx buildable lmod/5.8

Get ready for Lmod/5.8, installable on recent macosx variants (implies a tiny patch)