Make XySubFilter compilation possible with VS2012 (xy_sub_filter_rc)

I managed to make the latest released beta release (v3.1.0.546) compile with VS2012.
It probably needs some work, but it's already possible to compile everything.

<del>I can also check what is needed to do the same for the xy_sub_filter_rc2 branch at a later date.</del>