MADS: Fixes for compilation warnings