Fix Qt-4.8.x patches and build script