Added make_unique for platforms that don't have that c++14 support yet
Make use of the portable make_unique
Fixed an issue writing the size of the data chunk on 64bit os's