Fixed issue #5: Mac build now works

Fixed the current memory usage function on mac.