Added platform path separator.
Fixed bug when calculating buffer size.
Implemented directory_iterator.