Use -O3 optimizations on non-iOS code.
Change most memmove to memcpy, except where it would be bad.
Continual code style changes and tweaks.