Looks like the newer C libraries available at https://github.com/piface/libpifacedigital might help resolve this.