Clean up warnings

Clean up some warnings:

- `hton*` not declared when not using `bswap.h`
- Unused variable removed
- Unused function removed
- No newline at end of `tests/refs/branches/create.c`
- Include `stdarg.h` before trying to redefine `va_copy`
- Added `GIT_UNUSED` in the blame harder tests