meson: Remove deprecated usage of distutils
Fixes issue #9943 (closed) by replacing the usage of distutils.version (deprecated/removed in Python 3.12) with packaging.version, as discussed with @eric
Fixes issue #9943 (closed) by replacing the usage of distutils.version (deprecated/removed in Python 3.12) with packaging.version, as discussed with @eric