compile fix for my updates to matlab wrapper