OSX compilation.

Signed-off-by: Rob Caelers <rob.caelers@gmail.com>