minor fixes

missed some checkDependencies (needed them for the code in the lecture notes to work well)
update cmake to fix win32 issue (it was installing the mex files into a "Release" subdirectory)