Snow Leopard: Fix root header generation bug for C++ projects