Enable mallocmeasure only on Linux
Remove a bit of old, unused code