[master] Fix compilation errors in TestCPP for marmalade port.
Merge pull request #5892 from dumganhar/master

[master] Fix compilation errors in TestCPP for marmalade port.
Merge branch 'master' of https://github.com/cocos2d/cocos2d-x into #5098
issue #4410: add static libarary