Make it compile on MacOSX

It only worked once I applied this patch ...