Fix for issue #13 + 2 new cpuminer features

The fix for the issue #13 is the last commit.