Merge pull request #9121 from vovkasm/cmake-fix-glfw3-find

This should fix and unify finding GLFW3 for all desktop archs.
fixes compiler warnings
Merge pull request #9124 from ricardoquesada/compiler_warnings

fixes compiler warnings