initial Marmalade SDK support (PvZ playable)

plants vs zombies is now playable (sound is not yet implemented)

TODO: still contains a few hacks which should be removed in the future, support for other games is still missing/untested