Improved build script, fixed close caption crash