Platform independent, multi-threading implementation of lz4 stream in C++11