Add dependencies
Fix specs with ruby 1.8