Fixes for most bugs
Merge branch 'development' of https://github.com/osterbergsimon/concurrent-queue into development