Allow compilation on Mac OS

luuid is not a separate library on Mac OS but is included in
System.dylib

Based on patch by "fzadow <felix@von-zadow.de>"
Add "minor" own versioning ".sg"