impl: Check for Wayland connection also in Release

If no check is performed in Release builds a segfault is raised ahead.
Therefore after this change, the user will be aware what's going on instead
receive a segfault.
patches: Guard all Ozone code with its macros

Guard all Ozone code with its macros so the same code can be used to compile
X11 targets when desired. That's quite useful for testing.

Besides, I've reverted to the original author of that patch as well.