Add dependency on default-jre-headless, and move java depends to pre-depends.