Fix to can be compiled with cpuming on OS X

This commit is a fix to able cgminer can be compiled with cpu mining enable.
And I merged to master branch.