Fix include paths for Java and Python builds.

This means that Java and Python builds work from the root
(or arbitrary) directories again.