Fixed rakefile to be 1.8 compatible