Updated the most important makefiles to a state where they compile.