Fix dynamic value test to build correctly on Linux with C++11 features.