Some fixes so that sglib runs with Matlab 7.2 again