Pass ncurses cflags to build

Fixes #25.