cmake: Disable try to link with static system installed libs, seems that linux distros not supported this option mostly
cmake: Add correct _POSIX_C_SOURCE and _BSD_SOURCE (linux) defines when build luasocket, so all types and func properly defined
Merge branch 'check-test-jenkins' of github.com:vovkasm/cocos2d-x into check-test-jenkins