added getTotalSystemMemory function for osx
added missing header
fixed crash in metronom computation
Merge pull request #45 from nrondaud/osx_build

OSX build