Modified mcmcdev for C98 standard compliance