Added caching of X11 NULL atom.

Cherry-picked the missing commit that seems to fix the linux build for me.