Minor changes to some makefiles to make things work in the presence of a cross-compiler.