Updated for modern javac requirements and newer proguard.