Compile and warnings check on mac clang++