Fixed building when --disable-present option is used

Since a few years (since 09230a2d), the X server wasn't compileable when --disable-present was passed to the autogen script. This commit aims to fix this by adding directives and conditions around some code introduced in 09230a2d, cef12efc and 16571b89.

Signed-off-by: Hans Müller

Edited by Hans Müller

Merge request reports