correct makefiles bugs