Fix crashes during flac stream initialization