Update Makefile

fixed terminfo bug