Generalize the conversions between Blob and OpenCV Mat
Fix conflict between nvcc and boost for cmake