mdp4: Fix compilation... Add missing variable declarations