Make caffe a 'soft dependency'