Compilation error fix for blackberry.
Compilation error fix for Marmalade.
Adds app.icf for TestLua. Enlarges memory size.
[Mamalade] Adds app.icf TestLua template.
Merge pull request #4940 from dumganhar/blackberry-marmalade-fix

Compilation error fixes for Blackberry and Marmalade ports.