Move library name generation to configure, simplifies build system a bit more.