tweaked a few compilation options.  Added an additional option to configure building shared libraries.