fixing flags to build with cocos shared lib.