If there is only 1 core, use 1, not 0.5 cores.
Truncate the number of threads if uneven number
Merge pull request #22 from johandahlberg/minimum_one_core

A even number of cores should always be offered to make
fixed missing semi-colon