fix makefiles and projects