Use pkg-config to find Wayland libraries in the configure script.
Set up SDL_VIDEO_DRIVER_WAYLAND correctly from CMake project.
Merge pull request #25 from rcgordon/wayland-rebased-13-07-27

A couple build system fixes.