Update build script for Qt 5 for all platforms.