Share calcmand.cpp between platforms