uuid patch by (Måns Rullgård <mru inprovide com>)