Environmentally friendly building materials from CO2