changes module_function keywords to self.methods seems to work with jruby with --2.0 compat