Support for the command line options.
Added mutex operations to the MIDI client.