Added warn_unused_result attribute to X11 factory functions.