Patch for MCN on linux

patch by outsidecontext in http://bugs.musicbrainz.org/ticket/3803