fixed typo XDPING; fixed if condition COMPAT_VERSION

Hi!

There was a typo with XDPING in the if condition. After fixing that I also noticed that the if condition was always true, so I adjusted the if condition to check about the COMPAT_VERSION.

I don't have a CS compiler, so you'd have to make the dist build yourself. :sunny: