Snow Leopard: Fix more main Makefile creation bugs