Changes for FreeBSD compilation
Remove kill() warning on Linux