#395 Smaller fixes of shared library build from MATLAB source files