build: Set ccache base to build top

This enables ccache sharing between different build tree paths.

Change-Id: I99636bdd2779a6ccf0649f027e35cf67df44b6ae
Build: support building with openjdk and java6

Change-Id: I4359f802722a7563ff9acbbc9f30b8f7499f4609