Streamline implementation of GetUniqueIntID:

- if available, always use the GCC intrinsic function
- otherwise fall back on OS provided atomic operations
- TODO: support other platforms (e.g. Intel compiler)