stockpiles: fix compilation on windows

VS2010 only supports a subset of C++11