systat: fix build with newer ncurses
(cherry picked from commit 35e941ce5520b8ef710bb388bd63460aa0ce63eb)