Style fix
Allow to use a string for the "enabled" key in repo configuration but warn about it
Fix build with gcc.

  This patch "force" gcc not to complain, but the warnings are
  legitimate. Comments suggest that we should refactore where needed.
Fix build with bundled libelf