Fix bad memory being passed (due to going out of scope) to set title on X11.
Merge pull request #75 from glennw/fix-x11-window-title

Fix bad memory being passed (due to going out of scope) to set title on X11.