- fixed atomic increment/decrement as boost version was using "detail" and that's not necessarily portable/equivalent on all platforms to be safely casted as sometimes it uses an object with a mutex inside