Made API selectable in rtmidi backend.