some compile errors because of typnig for oracle java 1.8

I was running into compile errors before. 

System is ubuntu 14 with oracle java sdk 1.8