mesa: fix build by adding ncurses

After stdenv merge it seems needed, and drivers remain linked against it.

Tests still don't link.