qmake: fix missing library on Mac

Thanks to Markus Goetz (guruz on IRC) for reporting. Looks like I was too eager
when nuking the qmake nasties in 9dced46dad2674caabadfeb6cbf43aa082fbcea4.