Updated to support gradle 0.9 and to run on API 18