Put back old way to handle static registry memory.

The new method using GRegistryPointer led to segmentation faults on some platforms. Probably not all platforms handle static variables in the same manner.