fix compile problems with contributed ximgproc/xphoto

n/t