Misc fix

I've tried to make parts of the code more OoO friendly, also x86-64 has SSE2 in the base architecture, so try to use them to improve performance in the strings functions.
I hadn't much time to test the code, so check it out before merging it, thanks :D