Improve performance on x86 as well using movq.
Use atomic operations on Android + warning fixes.
Change default IO thread to false.
Merge pull request #3138 from unknownbrackets/gpu-thread

Use atomic operations on a few more platforms