Add preconfig.sh and missing files for building Qt