SW backend: make shaders work on Intel/Windows.

Apparently the Intel shader compiler doesn't implement "#if" correctly...
so use "#ifdef" instead.
Replace use of the deprecated mem_fun function with mem_fn.
Fix compilation error of Wayland_Util.h

This commit fixes the following error:
error: #endif without #if
Merge pull request #237 from pfpacket/fix-wl-build

Fix compilation error of Wayland_Util.h
Merge pull request #238 from lioncash/fix-deprecations

Replace use of the deprecated mem_fun function with mem_fn.
Merge pull request #227 from magumagu/swbackend-fix-shaders

SW backend: make shaders work on Intel/Windows.