refactored getTotalSystemMemory a bit, just to make it easy to extend it
_SC_AVPHYS_PAGES doesn't exist in Mac OS X
Merge pull request #377 from fran6co/patch-2

_SC_AVPHYS_PAGES doesn't exist in Mac OS X