fix linux cpp and lua template

This patch fix linux cpp and lua template compile error.

It add cocos2d-x as a subdirectory.