Added changes to generate shared libraries rather than static.