Fix build of rgbd, reg and xobjdetect modules in windows