d3d9trace: Prototype capability clamping.

Really basic, and untested -- just to get the ball rolling.
common: Never include VersionHelpers.h.

Availability also depends on Windows SDK version, and it's not clear which.

We could have a include check, but might as well just use our replacement
for now.
cmake: Fix build with Visual Studio toolchain for XP.