Import v1.2.2 vendor code.
Merge branch 'vendor' to get 1.2.2 code.

Conflicts:
	Makefile.objs
	trace-events
Revert "Avoid using "new" as parameter name as it is reserv..."

This reverts commit c80d67bd1fc0e032c97297d0b31953b1c44bc81d.

Conflicts:
	trace-events
Guard against C++ keywords in C includes using defines.

This avoids changing the QEMU code to work around C++ keywords used in
pure C code.
Guard usage of O_ASYNC with an #ifdef.

O_ASYNC does not exist on Haiku (yet) so guard against it like it is
done for some other flags.