(Apple) Get rid of g_initialized variable