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

The fix for Issue #23