build: Find libncurses by using pkg-config