elf: do not open code s_program

This is just to make the upcoming ELF namespaces patch smaller, since it is
quite independent. This is the only open coded user so far.

Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Add dependency of ifconfig in libtools

This adds library dependency of the ifconfig.so with libtools.so.
The problem arises in images that does not contain the api and are manually added the
ifconfig.so

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>