enable screensharing and update code to pass windows building.