Replace local uuid v4 implementation with libuuid