begin to make offscreen opencsg compile look like the one in mainwin.cc