Fix some misc build warnings
Hi,
here are some fixes for build warnings that added some noise to the build logs.
The fix about comp_window_wayland.c
may need some extra attention as I am totally new to Wayland.
The fixes in ns_hmd.c
might also be worth a proper review.
Thanks, Antonio