lib.[ch], dvd-sector-copy.c: Publish a couple of generally handy utilities.