Added static initialization for statics when targeting MageCraft.