Changed the compile commands so mccdevice is built as a static library libmcc which is then linked by main.cpp.