Snow Leopard: Fix bugs in create_header_dependencies