ui.backend.windows: correct wndproc signature so that factor works with vs2012

Haven't it tested it so much, but the change below seem to be all that was required to make factor work correctly with vs2012 (#997).