fixes for linux for cocos shared libs build

Please refer to http://discuss.cocos2d-x.org/t/cmake-linux-build-with-shared-libraries-prebuilt-not-pic/16671/4 for background.
Hi @asmodehn  
Thanks for the patch.
Since Tizen use arm-linux-gnueabi-gcc to build their static libraries.  So if we move *linux* before *gnu*, when we are mean to target Tizen, but it will treated as Linux?