add more missing files and make gradle build actually compile files.
add back stuff I didn't release were needed. Fix other issues to compile again.