Merge win/mtn.cpp & linux/mtn.c