Using libelf for modify files