The pine build is linking against the System framework, expecting the curses library to be contained in it. Apple moved curses out of the System framework in 10.2, restoring it as an independent library. Find the references to -framework System and change them to -lncurses, then rebuild.