Make RubyMotion compatible