[cleanup] silence multiple compiler warnings

  - low priority
  - silence the warning of uninitialized head_id in putcommit-v2-proc.c
  - silence the warning of implicit declaration of g_open in test-seafile-fmt.c
  - silence the warning of implicit declaration of g_stat in test-cdc.c
  - silence the warning of uninitialized e in merge-recursive.c