[C] Tweak the optimisation settings
[C] Remove unneeded tar options
[C] Implement log iterator
[C] Add comments for log iterator
[C] Support build both shared and static libraries