Fixed issue where MATLAB would lock class definitions