Builds for c but not c++