Fix the bug 3440.
Use CMAKE_CFG_INTDIR meta-variable to get the library output directory of the opencv_matlab.
Merge pull request #2062 from cook:bug3440