fixed some ui elements and mex files compiled on matlab 2014b