updated third party code for Matlab 2014b