vnswad: Fix Linux hosted build of the Agent

A bunch of cleanups and fixes necessary for Linux version of the Agent to
build.