Some bug fixes. Reference/value mixup in QApplication was causing segfaults. PowerManager now uses xset.