Fixed several issues with the compound file stream.