compile with clang/mac, these are warning fixes