Update of the build system and scripts

- Simplified the configure.py script.
- Added the --for-msvc option to the configure.bat script.
- Fixed a bug in the main cmake script.