Set Pool size to number of CPU cores

Detects number of CPU cores and sets the Pool size accordingly, fallbacks to eight when core number is unknown