initial Marmalade SDK support

It does not work yet. But i'd like to share the code. There are some commits which can be useful in other cases too (like the linker stuff and the EGL wrappers). If it's too unfinished, i can send another pull request at a later time.
WARNING: It contains some workarounds which are intended to get Marmalade powered games to start up, if it's possible they should probably removed.