use PHP_WINDOWS_VERSION_BUILD to detect Windows

This commit unifies the detection of Windows builds across the Symfony
codebase.