Fix compilation on macOS

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