Remove dependence on POSIX getline(); include a really simple portable line-reading function called `read_line`.