Silence unusued-variable warnings.
  Avoid format-string security issue.
  Updated to have better build-options.