agent: Enabled -Werror and removed warnings that kept failing the build.

The vnswif_listener.cc changes will be covered by merge of  dev-vnsif-listener-freebsd.