GUI + fix input

GUI-files should now compile, and now the window doesn't take input if
it's not in focus.