Update to allow building on OSX

Signed-off-by: Gabriel Reiser <greiser@cardfree.com>