Add MOZ_COUNT_CTOR to new graphics code