Fix problem with static initialization order.