Clean up Makefile
Support opengl context resets