updated lz4frame API, following suggestions from Takayuki Matsuoka