Include stdio.h before wchar.h to work around Linux header bug when _XOPEN_SOURCE is defined to 500.