Gradle: update to SDK 20 and fix deprecated syntax