Fixed crash on some Android devices.
Merge pull request #5 from Chronosyndrome/haxe3

Fixed crash on some Android devices.