allow jar and so files in gitignore
add missing gradle-wrapper
update and fix gradle build scripts