Generate a unique ID at compile time to work around a CLR bug