Guard COMMIT and commit.h usage behind HAVE_COMMIT
Bug #1305

- Updated ChangeLog.