Try build with second update to time.h for osm2pgsql and libmingle.