x11: add rewind and forward keys

Signed-off-by: wm4 <wm4@nowhere>
wayland: only save current mode of outputs

Other ones are not needed.
wayland: print some useful outptu info

Prints output informations, useful for finding out if we detect the right mode
and for debugging.
build: add a check_program check

This wraps waf's find_program in our own check boilerplate code so that it
can be used in the declarative dependencies section of the wscript.

Can be used like this:

    }, {
        'name': 'sed',
        'desc': 'sed program',
        'func': check_program('sed', 'SED'),
    }, {

First argument is the program name, and the second is the waf variable name
where the program path will be stored. In this example we will be able to
refer to sed with ${{SED}} when creating waf Tasks in wscript_build.

/cc @giselher: I think you need this for wayland-scanner.