make error messages a little better, use constants in unistd.h