Fix compilation error with Poco < 1.4.2.

You may be interested by this one which allows compilation on ubuntu 12.04 LTS with Poco 1.3.6.