fix make complaints about const and pointer assignment