Oops, fix PHG build with LLVM 3.3.

Also avoids unnecessary rebuilds: whenever a CMake target depends on a
directory and whose output is a file inside that directory, this target
is regenerated every build.