Few fixes in order to make it work with Rubymotion.