Fix macOS compilation

Change-Id: Icb3428ccfc37f2082797dd8c22cb0e38a27d7d20
Reviewed-on: http://gerrit.aldebaran.lan/45154
Reviewed-by: pdaouadi <pdaouadi@aldebaran-robotics.com>
Approved: hcuche <hcuche@aldebaran-robotics.com>
Tested-by: hcuche <hcuche@aldebaran-robotics.com>