fix compiling reg module after separating imgcodecs from highgui

fix compile error in reg tests