Apparently I should have done a complete rebuild after moving directories.h from headers/private/libroot to .../system, since a lot of stuff didn't build anymore.