fix test_fork

* was problem on debian/wheezy
Merge pull request #933 from soundart/master

cmake: fix test_fork