Make optional dependencies really configurable

Using XComposite and XDamage are optional dependencies but used automatically when libraries and headers were installed at build time. This was done automatically and you cannot influence this behaviour. Now the use of this optional features can be configure by using "--(enable/disable)-xcomposite" etc.