stop using eval

eval is generally considered bad practice.  I copied a couple of these fixes from the fixes I made to electrum-server.

I was able to launch the qt gui and it works for me.