define _FILE_OFFSET_BITS=64 and _GNU_SOURCE in main header.
fix header