enable static compilation for Windows

This is enabled only for MinGW and MSVC 2013, which have been
tested for both 32 and 64-bit builds.

Change-Id: Idced2887b4608bed4c086a4f8912251384eef5be