Fix failures on 1.8 and warnings on 1.9.3
Fix failures on 1.8 and warnings on 1.9.3

Vanzct/rake,bentley/rake,pjump/rake,ruby/rake,codedogfish/rake,tmornini/rake,ipmobiletech/rake,envato/rake,zzak/rake,88rabbit/rake,askl56/rake,taiganakagawa/rake,hsbt/rake,esasse/rake,hsbt/rake,utilum/rake,ruby/rake,jaustinhughey/rake,envato/rake