Add support for gmake at BSD.
Refactor
Fix definition modules for new command mechanism.