GUID from dmead/jkaq3.  

Backported the GUID from dmead/jkaq3.
It seems to compile fine on Windows, but I haven't managed to test it further than that.