agent: Enabled -Werror and removed warnings that kept failing the build.
Merge pull request #14 from Semihalf/fix-werror-enabled

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