Set version number on all libraries.

This should make it easier for other libraries to depend on
specific versions of IMP, and will break anything that
dynamically links against IMP when IMP is upgraded (rather than
having that dependent crash at runtime). Closes #796.