Update ofSystemUtils.cpp

stores the OpenGL context and restores it after a load / save dialog is popped up. closes #2800