Fixed memUsedPeak not defined bug on Mac OSX