fix compiling reg module after separating imgcodecs from highgui
Merge pull request #33 from vpisarev/reg_imgcodecs_fix

fix compiling reg module after separating imgcodecs from highgui