Added PKG_CONFIG_PATH and ncurses compiler flags