Check existence of `curses` module before start building PyPy (#244)