fix compiler warnings for ctemplate