Energy efficient windows and doors