fix knock compilation error on el6