Switch to gradle and upstream libs.