Build-system: disable test_fork when fork() is not available

Hi,

This short series just makes sure test_fork is only built when fork() is detected, in both supported build-system, preventing from build failures.

I've successfully tested these patch in cross-compilation, with Buildroot. 

Regards,