Changes needed to get it working on the mobile platforms.
Merge pull request #45 from kuu/master

Changes needed for working on the mobile platforms.