Added #include <algorithm> so project compiles.
Cleaned up AdditionalDependencies on sample projects.