Improve offheap memcpy performance

Patch by tjake; reviewed my jbellis for CASSANDRA-5884
Merge branch 'cassandra-2.0' into trunk