Make undo a variable rather than a compile time define.
Forgot to remove undo from configure.