fix bugs in mac clang++ compiler
goon
goon