Updating to work with 2.2.1

Looks like things changed a bit, see http://forums.gradle.org/gradle/topics/problem-with-native-support-on-2-1

Also, thanks for the examples!