[PD] Compiling msd* with gcc 4