Add a macro for version and generate some helpful code for shared libraries.