2 fixes for OS X

Hi! I couldn't get Dwarf Therapist to compile on Mac -- the copying of memory layouts was incorrect in dwarftherapist.pro.

When I got it to compile, it refused to run because on Mac, it needs to be setuid, and Qt complains about that. Fixed that as well.