Modifications in FindMatlab.cmake for additional cross-compatibility and further testing on MacOS