added matlab build

simple patch for matlab build system.

seems to work on my system.