added futex handling for atomic<int> vars and alikes
Merge branch 'master' into atomic-futexes