Snow Leopard: Fix a bug in makefile_functions