Usings a kaafirs money for the Musjid

Status of a waqf made by a kafir

Q: I request clarification on the ruling of waqf made by a kaafir.

What is the status of a waqf made by a kaafir? For example, if a kafir makes waqf of land for the building of a masjid, is such a waqf valid in Shari‘ah? [Kindly clarify, and also refer to Imdadul Ahkam, where there is mention of a related fatwa regarding this mas'ala]. 

Non-Muslim donating money towards the building of a Musjid

Q:

1) If a non-muslim ( hindu or christian, etc ) gives money towards the building of a mosque, is it acceptable?

2) If the whole project of building a mosque has been financed by a non-muslim, can we pray in such a mosque? Will our prayers be acceptable?

3) If a non-muslim has financed the building of a madrasah, or some classes of that madrasah, is that acceptable? Can our children learn there?