Anti-foaming agent for building materials