Bugfix: Distance since last update incorrectly calculated

Previous location was being update more often than it should.
Bugfix: Fewer unittest warnings

Don't redefine memcpy when runnign unittests