Build error on MacOS (c++?)