Fix ElementTextDefault.cpp to include <algorithm>