Add header for strerror_r().

Also add unnecessary throw to silence gcc in get_curses_attr().