Improve Windows Compilation

- Microsoft compiler has some issues with declarations of variables in
the middle of function
- Mex compiler get confused with spaces in the file paths (so I've
decided to try some MS-DOS dark magic)