Added line to Makefile so LBIT can be set to correctly identify
linux64

Added lines to termination of dialogs to ensure dialog is always
closed correctly.
Merge pull request #2 from deltaluca/master

solves window hang when using with glfw