change chunk.h for some not standard declaration