un-consted some variables to build with older (<= gcc-4.6) compilers