update external build script to use curl insteadof wget