Fix -lib with fully specified output name and '-c'.

The whole output path handling code is in dire need of a
cleanup/rework.
Temporarily disable failing test.