VC10 patch by thomas muller <toma@kalyx.org>.