Fixes when compiling the MDP protocol example under Windows using MSVS2010