Flac ignored last block

This commit (which is based on #19) contains the fix for #18.