Snow Leopard: Fix bugs in creation of subproject makefile