Few fixes in order to make it works with Rubymotion.