Adding configure option to generate shared libraries.