Support native input stream.

This changeset improves performance of SevenZipWriter.
Read files via native function, such as ReadFile of ifstream.read, instead of calling Ruby methods.
Close file appropriately.