Build script and patches for qt ios build