fix compile on ubuntu precise

Fixes https://github.com/mapnik/mapnik/issues/2469.