Use openjdk-7-jre-headless and don't depend on X11