freenetconfd: make c++ compiler friendly

Also fixes undefined WIFEXITSTATUS.

Signed-off-by: Zvonimir Fras <zvonimir.fras@sartura.hr>