Add OSX support to getMemoryInfo()