make QgsMapLayerRegistry ctor private (it's a singleton)