Fix warnings, only use sanitize when building from VCS