added UUID generation.
fixes for android build.