Build system: Fix the CPP flags for the vmware plugin.
vmware plugin: Small refactorings and avoid dispatching after error.

- Coding style changes: Renames variables (avoid camel-case), re-use
  some variables.
- Only submit metrics on success.
- Remove newlines in the DEBUG() and WARNING() macros.