TWK: trying to get matlab to compile correctly