make signals work on mac

Change-Id: Id93747bae03a1622e09ad40629a1885159e51e03
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>