handle WITH_{dependency} switch to turn on/off deps

The fix for Issue #23