Handle partial writes, instead of considering them an error.
Handle EINTR interrupted reads, writes and polls.
Adjust makefile to not override local CXXFLAGS.
Add -Wextra -Wno-unused-parameter to CXXFLAGS default.
Use standard build variables.