BLD: fixes for matlab Cmake build