Fix compilation on MacOS 

This allows the project to be built successfully on MacOS 10.9.