[cmake,release] Corrects setting of HAVE_* variables.

For generating the config.h file we use the HAVE_* variables instead
of the CMake ones *_FOUND, Unfortunately, we sometines to not set
HAVE_* to the value of the *_FOUND vriable but to its name. Usually
we only query whether these variable are set at all. While
this often (except for psurface) does not pose a problem, it is semantically
wrong. Therfore this patch fixes this.

Kudos to Ansgar for pointing to this problem.
(cherry picked from commit dc408c5167c56b7cb2232e8f8cc05d95ad77a91e)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>
[bugfix,cmake] Corrects setting of another variable.
(cherry picked from commit 57a0fb3cd7d0e02522df6d51b8a0569c7a618cb4)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>