make build work on ubuntu
workaround glDrawPixels upside down issue
clear unless dead code and restore one mutex
fix capture memory leak
dlg center