Fix warnings from ruby-prof