It fixes the build of TVOS with XCode 10, and avoid symbol errors. Fix #216, #209 (cherry picked from commit a86435fe44c4418ab0c9f6c3184c36a68ab62688)