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.