Update library paths to work with Windows

This patch removes the need for the MATLAB_HOME environment variable and adding the matlab executable directory to the PATH environment variable (unless it can't find the MATLAB directory).

I've included code for 64-bit MATLAB also, but as there is not a 64-bit Julia build for Windows available, I've not tested this part.