winemac: Use an init once function to register IME classes.