Fix cuesheets to work when startsample is non-zero (see issue #1082)