Allow running other tools than pkg-config.

Useful for e.g. wx-config.
Clean up option handling to ignore newlines and other junk