modify gcc invocations to work with ncurses on Linux