misc. improvements

* Close QEMU on program exit (EFI shutdown)
* Check for QEMU presence and other debug script improvements
* Remove unneeded compilation options and increase warning level