Add .gitignore
Use pthread locks, not gcc gthr locks
Support aarch64