Rewrite parts of gpioctl(8) to use the gpio(3) library.