Add _XOPEN_SOURCE_EXTENDED to use curses' get_wch() and to avoid a building error after next "bsddialog 0.2" import. Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D34419