Port xwidget.c to GCC 6 with --enable-gcc-warnings