agent: In review fixes

What has been done:
 - fixed compilation on FreeBSD

What needs to be done:
 - tests of vnswif does not compile anymore
 - cleanup of vnswif classes.