Fix MemoryUsage extension for OS X. Fix GH-529.
Merge pull request #530 from kmike/memusage-osx

Fix MemoryUsage extension for OS X