Fix compile error with Apple clang & libc++.
Add .gitignore.