Add a few more dev libs for building caffe.
Ignore patch failure if it is already applied.