changed makefile creation to fix problems in MIC libraries