Fix linking errors and qrcodedialog

Seems like the linker on linux is a bit more restrictive