Import v1.0.1 vendor code.
Merge branch 'vendor' to get 1.0.1 code.

Conflicts:
	cpus.c
	nbd.c
	oslib-posix.c
Port memory allocations to glib.
Only use SIGIO if it is available.
Flip library order so -lposix_error_mapper is linked first.
Add GLIB_CFLAGS to C++ compile line as well.
Add missing qemu_system_shutdown_request() forward declaration.