Misc code fixups

This branch fixes a C99-ism that prevents Data::UUID from being built on strict C89 compilers, and silences a handful of compiler warnings.