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)
Improve docs and solve Windows outdir issue
Merge pull request #7 from abravalheri/master

Changes for preliminary compatibility with Windows from @abravalheri.