You just have to compile with -D_FILE_OFFSET_BITS=64.