examples: Do not use /localhost prefix in examples

This change is to avoid a common problem of running examples on separate
machines.  The use of /localhost prefix, due to name-based scoping,
restricts the example programs to run on a single machine.

Change-Id: Id9f753fb7d097411b77b6227c6518679849d4411
build: Disable `unneeded-internal-declaration` warning

Change-Id: If14cd245be6e6e35023f70e6e96b71e3c05b5db6