Make XySubFilter possible with VS2012

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.

I can also check what is needed to do the same for the xy_sub_filter_rc2 branch at a later date.