Merge pull request #7 from ptitvert/master

Added Mac OS X support
Merge pull request #9 from ptitvert/master

Corrected the way the number of CPU is calculated, apparently the old
Made pretty.