Snow Leopard: Fix some bugs in update_makefiles and makefile_functions