Fix build on Darwin

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>