BUG: potential fix for Matlab build