fix knock compilation error on el6
Merge pull request #226 from jhrcz/master

knock compilation fix on EL6