cmake: fix test_fork

* was a problem on debian/wheezy