fix some makefiles