Changed windows build environment to use only static libraries

Please, merge.

See commit message for details.