agent: Fixed problems with Linux compilation

There have been changes done, in conditional header files inclusion,
that have broken the Linux compilation. This commit fixes the problem.
Merge pull request #6 from Semihalf/freebsd__linux_compilation_fix

Merge fix for broken Linux compilation