Improved Qt build, Pandora fixes, Enable saving on exit

Enable saving when pressing 'Exit'. TODO: Should save when settings changed instead.
Buildfix for Pandora. I put an #undef R0 in there but it may not work.
Improved Qt build. Removed some redundancies, introduced QString's where it made sense.