Improved Midi initialization.

It seems to be important that Midi initialization be deferred. Without
deferring initialization, JVM loading in Max hangs forever. Perhaps this
is a clue to the problems we saw with log4j hangs?