Finally fixed x86-64 compatibility problems in Midi-dot-Net.