UUID code from util-linux (BSD licensed)