Dynamically calculate the number of CPUs

Instead of passing "-j 2" to make, dynamically calculate the number of
CPUs so we get better compile performance.

Currently works for Mac OS X and Linux and defaults to 2 for anything
else.