libbase: cmake cleanup
libbase: some cmake/apple improvements
[libbase] Pipe: platform-improvements wrt. pipe2-vs-pipe
[libbase] Pipe: properly propagate error code to the caller