various: add LICENSE comments.
read_write_all: avoid arithmetic on void pointers.
Fix new glibc warnings about warn_unused_result.