meson: fixes for building for Windows with MinGW-w64 toolchain
Fixes to meson.build for building without mesa and for building for Windows with the MinGW-w64 toolchain.
Fixes to meson.build for building without mesa and for building for Windows with the MinGW-w64 toolchain.