Fix build of native modules of Carbon/ncurses on OS X 10.7