AtomicCounter: fix Haiku support.
Add .gitignore to make Git ignore compiled files.