build: Allow building with OpenJDK

Change-Id: I6348bc1187240729f75f50d7ef91802c68e7788b
Merge "build: Allow building with OpenJDK" into android-4.4