Add a separate Makefile example for static linking components.

Also trim the dynamic one to not explicitly link libs which
are brought in by DT_NEEDED.

Inspired by issue #45