Fix ncurses for mingwrt-4.0.0
Fix gdb for mingwrt-4.0.0
swprintf is still needed in cwchar header, reversing