ENV vars: Document add_custom_command() ENVIRONMENT option.
ENV vars: fix cross-platform (MSVS) incompatibilities.

- std::fstream does not support std::string stream input
- need to obey additionally required CMAKE_CFG_INTDIR, too
ENV vars: add initial MSVS generator support.

Tested on MSVS10 only (at most...).