Linux build support.

This is a basic linux build support. It is related to [this pull commit](https://github.com/cocos2d/cocos2d-x/pull/5339) on cocos2d-x.