gradle compilation problems solved

Hi Kenyee, 
as you asked for, here is the pull request. 
This is the first time I do a pull request so excuse me in advance if I'm making something wrong! 
Should I pull it into another branch maybe?
Thanks again for providing this
cheers
b.