For anyone interested the FLAC library past 1.1.3 had an api change when
opening seekable streams. Here's patches for the files involved. It may
be worth checking that FLAC is at version >=1.1.3 in configure but i'm
not sure how to change it.
I've done some testing and it seems fine, but might want better testing