stockpiles: user friendly error handling

* display errors in the GUI when necessary
* handle older versions of DFHack without the persist module