build system now generate matlab thunk and prototype file