[build] check for pipe2() at configure time