build: fix dmstats loop control var declarations, non-C99
build: fix dmstats loop control var declarations, non-C99

adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp