Mac build fixes

These minor changes to the CMake scripts were necessary to build opengm on my Mac.