support for shared libraries. Diffs from Manuel Bouyer, probably
derived from similar OpenBSD gcc diffs.
This change is in the source tree because it was used to build a NetBSD/pmax
shared-lib snapshot. The change isn't being integrated into the gcc2netbsd
script until the shared-lib diffs are finalized.