Remove PIPE_BUF; fix missing limits