fix a crash on Linux
Merge pull request #937 from bitwangyaoyao:2.4_fixPyrLK