patch-ah was to support old X11 library (including freetype2 etc).
Removing this patch now. Checked on following OS:
                     X11_TYPE
                     modular  native
 NetBSD/amd64 6.0.1  x        x
 NetBSD/i386  5.2    x        (*1)
 Darwin	     10.6             x		(BUILTIN_X11_TYPE.native= Darwin)
 DragonFly    3.2.2  x          	(with gcc-4.7)

(x means builds fine).

(*1)
NetBSD/i386  5.2    (X11_TYPE= native)
is not supported, too old X11 (for example),
checking for X11... configure: error:
  Package requirements (xproto >= 7.0.17
  xextproto xtrans xcb >= 1.1.92 kbproto inputproto) were not met:
Requested 'xproto >= 7.0.17' but version of Xproto is 7.0.15