Enable alternate names for shared libraries

This should fix test022 on Windows.

All tests pass on Linux and Mac.