fix compiler errors

fix errors happening in rakefile strict compiler error settings.