You won't be able to compile with the function imported using the modern lib (because it doesn't exist on XP) but you can conditionally link it at runtime with LoadLibrary/GetProcAddress.
If IsWindows... doesn't work then you can use the VerifyVersionInfo function directly.
If IsWindows... doesn't work then you can use the VerifyVersionInfo function directly.