Created HighGUI2 library and modified examples to use it.