Added limit parameter to limit number of GetWork requests before process exits.
Extracted main from cpu-miner.c to allow static linking to cpu-miner from other code
Some files didn't make it???