validate: fix build on macOS
_Q_VALIDATE_MONITOR was defined twice because it wasn't declared as extern in the header, so it would be defined as variable in all included files. This doesn't seem to cause problems on Linux, but seems to cause build failures on macOS.
Fixes #42 (closed)