First shared library work.

- Works with clang.
- Needs work with other compilers/linkers.