Generate shared libraries.

Changes to generate shared libraries as well as static ones.
Added a pkg-config file.

For systems that support pkg-config, they can use it for compiling and
linking against libcds2.